//
//  M_Member.h
//  YunDongAdmin
//
//  Created by lqq on 2018/9/6.
//  Copyright © 2018年 cloudfighting.com. All rights reserved.
//

#import "M_Base.h"
#import "M_Coach.h"



/**
 会员性别类型
 */
typedef NS_ENUM(NSInteger, MemberSexType) {
    MemberSexType_Male = 1,//男
    MemberSexType_Female = 2,//女
};

/**
 会员类型
 */
typedef NS_ENUM(NSInteger, YDMemberType) {
    YDMemberType_Associator = 1,//会员
    YDMemberType_Tourist = 2,//游客
    YDMemberType_Virtual = 3,//虚拟
};


/**
 用户注册类型
 */
typedef NS_ENUM(NSInteger, MemberRegistType) {
    MemberRegistTypeXiaoChengxu,//小程序
};




@protocol M_Member

@end

@protocol M_CardTimesConsumeMonth

@end



@interface M_Member : M_Base
@property (nonatomic, assign) NSInteger cardTimes;// 总次数
@property (nonatomic, assign) NSInteger cardTimesConsume;//消耗次数
@property (nonatomic, assign) BOOL isBind;//是否绑定微信
@property (nonatomic, copy) NSString *memberAvatarUrl;//用户头像地址
@property (nonatomic, copy) NSString *memberCode;//用户编号（6位）
@property (nonatomic, copy) NSString *memberCreatecoach;//创建的教练ID
@property (nonatomic, assign) long long memberCreatedate;//
@property (nonatomic, copy) NSString *memberId;//用户id
@property (nonatomic, copy) NSString *memberMobile;//用户手机
@property (nonatomic, copy) NSString *memberName;//用户姓名
@property (nonatomic, copy) NSString *memberNickname;//用户微信昵称
@property (nonatomic, strong) NSString *memberRemark;//会员备注
@property (nonatomic, assign) MemberSexType memberSex;//用户性别（0=性别未知，1=男，2=女） ,
@property (nonatomic, assign) YDMemberType memberType;//用户类型（2=游客，1=会员
@property (nonatomic, assign) NSInteger recordCount;//训练次数
@property (nonatomic, assign) NSInteger planCount;//计划次数
@property (nonatomic, assign) MemberRegistType registerType;//注册类型:目前只有 1 小程序
@property (nonatomic, strong) NSMutableArray<M_CardTimesConsumeMonth> *cardTimesConsumeMonth;
@property (nonatomic, strong) NSString *pinyin;
@property (nonatomic, copy) NSString *coachName;//所属教练
@property (nonatomic, copy) NSString *cardInfo;//
@end


/**
 会员详情
 */
@interface M_MemberDetail : M_Base

@property (nonatomic, strong) NSMutableArray<M_Coach> *coachList;//指导教练
@property (nonatomic, strong) M_Member *member; //会员信息
@end


@interface M_CardTimesConsumeMonth : M_Base
@property (nonatomic, copy) NSString *monthStr;//
@property (nonatomic, assign) int cardTimesConsume;//
@end


@interface M_ScheduleMemberDTO:M_Base
@property (nonatomic, strong) M_Member *member;
@property (nonatomic, strong) M_Coach *coachInfo;
@property (nonatomic, assign) long long planDate;// 排课时间
@property (nonatomic, copy) NSString *timeStr;// 排课时间字符串
@property (nonatomic, copy) NSString *planRemark;//
@end





